package Model;


import Aleatorio.Distribuciones.GeneradorAleatorio;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Driv
 */
public class RandomFruta implements GeneradorAleatorio{
    
    int[] random;
    int indice;

    public RandomFruta(String demanda){
        indice = 0;
        if (demanda != null) {
            int[] array = {12,67,77,34,50,61,02,55,98,22,54,39};
            random = array;
        }
        else {
            int[] array = {56,97,12,45,53,43,27,84,61,74,70,33};
            random = array;
        }
    }

    public void setSemilla(int semilla) {

    }

    public double siguiente() {
        int ran = random[indice];
        indice ++;
        return ((double)ran)/100d;
    }


}

